/*
 *  $Id: StartGame.cs 1246 2011-03-23 14:19:35Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008-2010 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

using Nereal.Serialization;

namespace Ragima.Events {
    [TypeId("startgame")]
    public class StartGame: DirectConnectEvent {
        [Serialize, XmlName("seed")]
        private int _seed;

        public StartGame() {
            _seed = Randomizer.Global.Next();
        }

        protected override void ExecuteInner(DirectConnectScene scene) {
            Game.NewGame(scene.Mode, _seed);
        }
    }
}
